//
//  NSDefaultHeader.h
//  LZNeiHan
//
//  Created by 梁梓烽 on 16/10/1.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//




#pragma mark -弱指针
/** 弱指针 */
#define WeakSelf(weakSelf)  __weak __typeof(&*self)weakSelf = self;
//#define WeakSelf __weak typeof(self) weakSelf =self;

#pragma mark -颜色

#define KGlobalColor  KColor(215,215,215)
#define KARGBColor(a, r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)/255.0]
#define KColor(r, g, b) KARGBColor(255, (r), (g), (b))



#define kWhiteColor [UIColor whiteColor]
#define kClearColor [UIColor clearColor]
#define kRGBAColor(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define kRGBColor(r,g,b) kRGBAColor(r,g,b,1.0f)
#define kRGBColor(r,g,b) kRGBAColor(r,g,b,1.0f)
#define kSeperatorColor kRGBColor(234,237,240)
#define KRandomColor KColor(arc4random_uniform(255), arc4random_uniform(255), arc4random_uniform(255))
#define kTextColor [UIColor colorWithRed:0.32f green:0.36f blue:0.40f alpha:1.00f]


#define kCommonBlackColor [UIColor colorWithRed:0.17f green:0.23f blue:0.28f alpha:1.00f]

 #pragma mark -系统UI


/***  普通字体 */
#define kFont(size) [UIFont systemFontOfSize:size]


/***  当前屏幕宽度 */
#define kScreenWidth  [[UIScreen mainScreen] bounds].size.width
/***  当前屏幕高度 */
#define kScreenHeight  [[UIScreen mainScreen] bounds].size.height
/***  普通字体 */
#define kFont(size) [UIFont systemFontOfSize:size]
/***  粗体 */
#define kBoldFont(size) [UIFont boldSystemFontOfSize:size]
/***  普通字体 */
#define kFont(size) [UIFont systemFontOfSize:size]
#define kLineHeight (1 / [UIScreen mainScreen].scale)


#pragma mark -字符串转化



#pragma mark - 写plist
//快速写plist到本地电脑
#define KAFNWriteToPlist(filename) [responseObject writeToFile:[NSString stringWithFormat:@"/Users/liangzifeng/Desktop/%@.plist", @#filename] atomically:YES];


#pragma mark -输出相关
//函数调用输出
#define KFunc KLog(@"%s",__func__)


//输出函数 log
#ifdef DEBUG // 调试
// ...:宏里面可变参数
#define KLog(...) NSLog(__VA_ARGS__)

#else // 发布

#define KLog(...)

#endif

